package com.sidianzhong.sdz.model;

import java.io.Serializable;

/**
 * @author 
 */
public class WebEquipmentscancode implements Serializable {
    private Integer id;

    private String equipmenttypekey;

    private String equipmentkey;

    private String equipmentcode;

    private Integer equipmentcodetype;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEquipmenttypekey() {
        return equipmenttypekey;
    }

    public void setEquipmenttypekey(String equipmenttypekey) {
        this.equipmenttypekey = equipmenttypekey;
    }

    public String getEquipmentkey() {
        return equipmentkey;
    }

    public void setEquipmentkey(String equipmentkey) {
        this.equipmentkey = equipmentkey;
    }

    public String getEquipmentcode() {
        return equipmentcode;
    }

    public void setEquipmentcode(String equipmentcode) {
        this.equipmentcode = equipmentcode;
    }

    public Integer getEquipmentcodetype() {
        return equipmentcodetype;
    }

    public void setEquipmentcodetype(Integer equipmentcodetype) {
        this.equipmentcodetype = equipmentcodetype;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WebEquipmentscancode other = (WebEquipmentscancode) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getEquipmenttypekey() == null ? other.getEquipmenttypekey() == null : this.getEquipmenttypekey().equals(other.getEquipmenttypekey()))
            && (this.getEquipmentkey() == null ? other.getEquipmentkey() == null : this.getEquipmentkey().equals(other.getEquipmentkey()))
            && (this.getEquipmentcode() == null ? other.getEquipmentcode() == null : this.getEquipmentcode().equals(other.getEquipmentcode()))
            && (this.getEquipmentcodetype() == null ? other.getEquipmentcodetype() == null : this.getEquipmentcodetype().equals(other.getEquipmentcodetype()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getEquipmenttypekey() == null) ? 0 : getEquipmenttypekey().hashCode());
        result = prime * result + ((getEquipmentkey() == null) ? 0 : getEquipmentkey().hashCode());
        result = prime * result + ((getEquipmentcode() == null) ? 0 : getEquipmentcode().hashCode());
        result = prime * result + ((getEquipmentcodetype() == null) ? 0 : getEquipmentcodetype().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", equipmenttypekey=").append(equipmenttypekey);
        sb.append(", equipmentkey=").append(equipmentkey);
        sb.append(", equipmentcode=").append(equipmentcode);
        sb.append(", equipmentcodetype=").append(equipmentcodetype);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}